package com.cinc.ebc.mm.vo;

import com.cinc.ebc.mm.entity.MmPurchaseRequisitionDetail;
import com.cinc.ebc.mm.model.MmPurchaseRequisitionDetailModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 采购申请
 * @Author: jeecg-boot
 * @Date:   2022-03-20
 * @Version: V1.0
 */
@Data
@ApiModel(value="mm_purchase_requisitionPage对象", description="采购申请")
public class MmPurchaseRequisitionPage {

	/**主键ID*/
	@ApiModelProperty(value = "主键ID")
    private String id;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
	@ApiModelProperty(value = "单据编号")
    private String reqNo;
	/**申请类型*/
	@Excel(name = "申请类型", width = 15, dicCode = "mm_purchase_reqtype")
    @Dict(dicCode = "mm_purchase_reqtype")
	@ApiModelProperty(value = "申请类型")
    private String reqType;
	/**工厂*/
	@Excel(name = "工厂", width = 15, dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
    @Dict(dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
	@ApiModelProperty(value = "工厂")
    private String factoryId;
	/**需求日期*/
	@Excel(name = "需求日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "需求日期")
    private Date reqDate;
	/**预估总价*/
	@Excel(name = "预估总价", width = 15)
	@ApiModelProperty(value = "预估总价")
    private java.math.BigDecimal totalPrice;
	/**申请人*/
	@Excel(name = "申请人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "申请人")
    private String applyEmpId;
	/**申请部门*/
	@Excel(name = "申请部门", width = 15)
	@ApiModelProperty(value = "申请部门")
    private String applyDeptId;
	/**申请日期*/
	@Excel(name = "申请日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "申请日期")
	private Date applyDate;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "mm_purchase_reqstatus")
    @Dict(dicCode = "mm_purchase_reqstatus")
	@ApiModelProperty(value = "状态")
    private String status;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
	@ApiModelProperty(value = "租户ID")
    private Integer tenantId;
	/**项目*/
	@Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@ApiModelProperty(value = "项目")
	private String projectId;

	@ExcelCollection(name="采购申请明细")
	@ApiModelProperty(value = "采购申请明细")
	private List<MmPurchaseRequisitionDetail> mmPurchaseRequisitionDetailList;

}
